const { Schema, default: mongoose } = require("mongoose");
const baseModel = require("./baseModel");

module.exports = new Schema({
  user: {
    type: mongoose.Schema.Types.ObjectId,
    required: true,
    unique: true,
    ref: "User",
  },
  channel: {
    type: mongoose.Schema.Types.ObjectId,
    required: true,
    unique: true,
    ref: "User",
  },
  ...baseModel,
});
